<?php
/*************	 HOME LINK 	**************/
class B2b_Widgets_Homelinks_Widget extends Tomato_Widget
{
    protected function _prepareShow()
    {	
		$path_data 		   = 'application/modules/b2b/widgets/data';
		require_once 	   $path_data.'/mainpageXML.php';
		$path_xml_mainpage = $path_data . '/mainpage.xml';
		$mainpageObj = new mainpageXML($path_xml_mainpage);		
		$links = $mainpageObj->getLinks();		
		$this->_view->assign("links",$links);
		
		$request = Zend_Controller_Front::getInstance()->getRequest();
        $lang = $request->getParam('lang');
        $this->_view->assign('lang', $lang);
    }

    protected function _prepareConfig()
    {					
    }
}
